package railRoad.web.slaves;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import railRoad.web.slaves.interfaces.ISlaveServlet;

public class IndexServlet implements ISlaveServlet {

	public void work(HttpServletRequest req, HttpServletResponse resp)
			throws IOException, ServletException {
		req.getSession(true).removeAttribute("body");
		req.getSession(true).removeAttribute("page");
		
		resp.sendRedirect("/index.jsp");
	}

}
